print("1...") |
import time |
print("3...") |
print("2...") |
print("Go!") |
time.sleep(1) |
time.sleep(1) |
time.sleep(1) |
1 | import time |
2 | print("3...") |
3 | time.sleep(1) |
4 | print("2...") |
5 | time.sleep(1) |
6 | print("1...") |
7 | time.sleep(1) |
8 | print("Go!") |
replit.clear() |
print(" .") |
print(" .") |
print(" .") |
replit.clear() |
import replit |
time.sleep(1) |
replit.clear() |
import time |
time.sleep(1) |
time.sleep(1) |
time.sleep(1) |
print(".") |
replit.clear() |
print(" .") |
1 | import time |
2 | import replit |
3 | print(".") |
4 | time.sleep(1) |
5 | replit.clear() |
6 | print(" .") |
7 | time.sleep(1) |
8 | replit.clear() |
9 | print(" .") |
10 | time.sleep(1) |
11 | replit.clear() |
12 | print(" .") |
13 | time.sleep(1) |
14 | replit.clear() |
15 | print(" .") |
y = colored.fg("yellow") |
import colored |
print(y + "hello") |
1 | import colored |
2 | y = colored.fg("yellow") |
3 | print(y + "hello") |
r = random.randint(1,100) |
import random |
print(r) |
1 | import random |
2 | r = random.randint(1,100) |
3 | print(r) |
print(r) |
print("Your dice roll is:") |
replit.clear() |
replit.clear() |
import replit |
replit.clear() |
time.sleep(1) |
import time |
time.sleep(1) |
import random |
replit.clear() |
print(".") |
time.sleep(1) |
print(".") |
print(".") |
r = random.randint(1,6) |
time.sleep(1) |
1 | import random |
2 | import time |
3 | import replit |
4 | print("Your dice roll is:") |
5 | time.sleep(1) |
6 | replit.clear() |
7 | print(".") |
8 | time.sleep(1) |
9 | replit.clear() |
10 | print(".") |
11 | time.sleep(1) |
12 | replit.clear() |
13 | print(".") |
14 | time.sleep(1) |
15 | replit.clear() |
16 | r = random.randint(1,6) |
17 | print(r) |
r = str(r) |
print("Guess the dice roll...") |
print("Well done!") |
else: |
i = input() |
print("Unlucky it was " + r) |
i = int(i) |
r = random.randint(1,6) |
if r == i: |
  r = str(r) |
print("Guess the dice roll...") |
  print("Well done!") |
else: |
i = input() |
  print("Unlucky it was " + r) |
i = int(i) |
r = random.randint(1,6) |
if r == i: |
1 | print("Guess the dice roll...") |
2 | i = input() |
3 | i = int(i) |
4 | r = random.randint(1,6) |
5 | if r == i: |
6 |   print("Well done!") |
7 | else: |
8 |   r = str(r) |
9 |   print("Unlucky it was " + r) |
s1 = input() |
w = colored.fg("white") |
r = colored.fg("red") |
s2 = input() |
i1 = str(i1) |
print("Name a sports team") |
print(b + s1 + w + " vs" + r + s2) |
i1 = random.randint(1,4) |
print("Name another sports team") |
print(i1 + " vs" + i2) |
i2 = str(i2) |
print("Final Score is:") |
i2 = random.randint(1,4) |
import colored |
b = colored.fg("blue") |
1 | import colored |
2 | print("Name a sports team") |
3 | s1 = input() |
4 | print("Name another sports team") |
5 | s2 = input() |
6 | b = colored.fg("blue") |
7 | r = colored.fg("red") |
8 | w = colored.fg("white") |
9 | print(b + s1 + w + " vs" + r + s2) |
10 | i1 = random.randint(1,4) |
11 | i2 = random.randint(1,4) |
12 | i1 = str(i1) |
13 | i2 = str(i2) |
14 | print("Final Score is:") |
15 | print(i1 + " vs" + i2) |
elif r == 2: |
c = colored.fg("green") |
else: |
import colored |
r = random.randint(1,4) |
c = colored.fg("yellow") |
c = colored.fg("blue") |
c = colored.fg("red") |
if r == 1: |
elif r == 3: |
print(c + "hello") |
import random |
elif r == 2: |
    c = colored.fg("green") |
else: |
import colored |
r = random.randint(1,4) |
    c = colored.fg("yellow") |
    c = colored.fg("blue") |
    c = colored.fg("red") |
if r == 1: |
elif r == 3: |
print(c + "hello") |
import random |
1 | import colored |
2 | import random |
3 | r = random.randint(1,4) |
4 | if r == 1: |
5 |     c = colored.fg("red") |
6 | elif r == 2: |
7 |     c = colored.fg("blue") |
8 | elif r == 3: |
9 |     c = colored.fg("yellow") |
10 | else: |
11 |     c = colored.fg("green") |
12 | print(c + "hello") |
import time |
print("How long did it take?") |
print("Incorrect") |
print("Correct!") |
i = input() |
print("Guess how long this wait is. The game will start in 2 seconds") |
print("Time ended") |
import random |
i = int(i) |
if i == r: |
time.sleep(2) |
else: |
r = random.randint(1,5) |
print("From now!") |
time.sleep(r) |
import time |
print("How long did it take?") |
    print("Incorrect") |
    print("Correct!") |
i = input() |
print("Guess how long this wait is. The game will start in 2 seconds") |
print("Time ended") |
import random |
i = int(i) |
if i == r: |
time.sleep(2) |
else: |
r = random.randint(1,5) |
print("From now!") |
time.sleep(r) |
1 | import random |
2 | import time |
3 | |
4 | r = random.randint(1,5) |
5 | print("Guess how long this wait is. The game will start in 2 seconds") |
6 | time.sleep(2) |
7 | print("From now!") |
8 | time.sleep(r) |
9 | print("Time ended") |
10 | print("How long did it take?") |
11 | i = input() |
12 | i = int(i) |
13 | if i == r: |
14 |     print("Correct!") |
15 | else: |
16 |     print("Incorrect") |
if r % 2 == 0: |
c = colored.fg("red") |
import colored |
r = random.randint(1,100) |
else: |
print(b + r) |
print(c + r) |
import random |
r = str(r) |
r = str(r) |
b = colored.fg("blue") |
if r % 2 == 0: |
    c = colored.fg("red") |
import colored |
r = random.randint(1,100) |
else: |
    print(b + r) |
    print(c + r) |
import random |
    r = str(r) |
    r = str(r) |
    b = colored.fg("blue") |
1 | import random |
2 | import colored |
3 | r = random.randint(1,100) |
4 | if r % 2 == 0: |
5 |     b = colored.fg("blue") |
6 |     r = str(r) |
7 |     print(b + r) |
8 | else: |
9 |     c = colored.fg("red") |
10 |     r = str(r) |
11 |     print(c + r) |
print("You are having an ice walk in a forest") |
s = input() |
print("You are able to swim up to the top and escape") |
print("You see an old abandoned shed") |
time.sleep(1) |
time.sleep(1) |
print("Do you take the ladder or pull th lever? (lever/ladder)") |
i = i.lower() |
print("Well done! You win!") |
else: |
print("Do you enter? Y/N") |
print("You fall into a trap door when entering the shed") |
time.sleep(1) |
exit() |
import time |
print("The room youa re in starts filling up with water") |
print("That was a boring choice") |
time.sleep(1) |
time.sleep(1) |
time.sleep(1) |
print("You lose") |
i = input() |
print("The ladder breaks and you fall back down to the bottom.") |
time.sleep(1) |
if i == "ladder": |
print("There is a ladder and a lever") |
s = s.upper() |
else: |
time.sleep(1) |
if s == "Y": |
exit() |
print("You are having an ice walk in a forest") |
s = input() |
        print("You are able to swim up to the top and escape") |
print("You see an old abandoned shed") |
        time.sleep(1) |
time.sleep(1) |
    print("Do you take the ladder or pull th lever? (lever/ladder)") |
    i = i.lower() |
        print("Well done! You win!") |
else: |
print("Do you enter? Y/N") |
    print("You fall into a trap door when entering the shed") |
    time.sleep(1) |
        exit() |
import time |
        print("The room youa re in starts filling up with water") |
    print("That was a boring choice") |
time.sleep(1) |
        time.sleep(1) |
    time.sleep(1) |
        print("You lose") |
    i = input() |
        print("The ladder breaks and you fall back down to the bottom.") |
        time.sleep(1) |
    if i == "ladder": |
    print("There is a ladder and a lever") |
s = s.upper() |
    else: |
        time.sleep(1) |
if s == "Y": |
    exit() |
1 | import time |
2 | print("You are having an ice walk in a forest") |
3 | time.sleep(1) |
4 | print("You see an old abandoned shed") |
5 | time.sleep(1) |
6 | print("Do you enter? Y/N") |
7 | s = input() |
8 | s = s.upper() |
9 | if s == "Y": |
10 |     print("You fall into a trap door when entering the shed") |
11 |     time.sleep(1) |
12 |     print("There is a ladder and a lever") |
13 |     time.sleep(1) |
14 |     print("Do you take the ladder or pull th lever? (lever/ladder)") |
15 |     i = input() |
16 |     i = i.lower() |
17 |     if i == "ladder": |
18 |         print("The ladder breaks and you fall back down to the bottom.") |
19 |         time.sleep(1) |
20 |         print("You lose") |
21 |         time.sleep(1) |
22 |         exit() |
23 |     else: |
24 |         print("The room youa re in starts filling up with water") |
25 |         time.sleep(1) |
26 |         print("You are able to swim up to the top and escape") |
27 |         time.sleep(1) |
28 |         print("Well done! You win!") |
29 | else: |
30 |     print("That was a boring choice") |
31 |     exit() |
32 |      |
rest = i[1:] |
print("Enter a word") |
print(red + firstLetter + yellow + rest) |
firstLetter = i[0] |
import colored |
s = input() |
yellow = colored.fg("yellow") |
red = colored.fg("red") |
1 | import colored |
2 | |
3 | print("Enter a word") |
4 | s = input() |
5 | |
6 | red = colored.fg("red") |
7 | yellow = colored.fg("yellow") |
8 | |
9 | firstLetter = i[0] |
10 | rest = i[1:] |
11 | print(red + firstLetter + yellow + rest) |
middle = l//2 |
lastHalf = s[middle:] |
l = len(s) |
print("Enter a sentence") |
blue = colored.fg("blue") |
s = input() |
pink = colored.fg("orchid_1") |
print(blue + firstHalf + pink + lastHalf) |
import colored |
firstHalf = s[:middle] |
1 | import colored |
2 | |
3 | print("Enter a sentence") |
4 | s = input() |
5 | |
6 | blue = colored.fg("blue") |
7 | pink = colored.fg("orchid_1") |
8 | |
9 | l = len(s) |
10 | middle = l//2 |
11 | firstHalf = s[:middle] |
12 | lastHalf = s[middle:] |
13 | print(blue + firstHalf + pink + lastHalf) |
s = s.replace("e",r+"e"+w) |
w = colored.fg("white") |
s = s.replace("o",r+"o"+w) |
print("Enter a sentence") |
r = colored.fg("red") |
s = input() |
s = s.replace("u",r+"u"+w) |
s = s.replace("i",r+"i"+w) |
s = s.replace("a",r+"a"+w) |
1 | print("Enter a sentence") |
2 | s = input() |
3 | |
4 | r = colored.fg("red") |
5 | w = colored.fg("white") |
6 | |
7 | s = s.replace("a",r+"a"+w) |
8 | s = s.replace("e",r+"e"+w) |
9 | s = s.replace("i",r+"i"+w) |
10 | s = s.replace("o",r+"o"+w) |
11 | s = s.replace("u",r+"u"+w) |
n = " " + n |
color = colored.fg("black") |
n = random.randint(1,36) |
else: |
print(" ") |
whitebg = colored.bg("white") |
import random |
n = color + n |
print(whitebg + " ") |
print(" " + n + " ") |
if len(n) == 1: |
color = colored.fg("red") |
import colored |
n = str(n) |
if n % 2 == 0: |
    n = " " + n |
    color = colored.fg("black") |
n = random.randint(1,36) |
else: |
print(" ") |
whitebg = colored.bg("white") |
import random |
n = color + n |
print(whitebg + " ") |
print(" " + n + " ") |
if len(n) == 1: |
    color = colored.fg("red") |
import colored |
n = str(n) |
if n % 2 == 0: |
1 | import random |
2 | import colored |
3 | |
4 | whitebg = colored.bg("white") |
5 | n = random.randint(1,36) |
6 | if n % 2 == 0: |
7 |     color = colored.fg("red") |
8 | else: |
9 |     color = colored.fg("black") |
10 | n = str(n) |
11 | if len(n) == 1: |
12 |     n = " " + n |
13 | n = color + n |
14 | print(whitebg + " ") |
15 | print(" " + n + " ") |
16 | print(" ") |
#Middle Section |
r = random.randint(1,6) |
#Top Section |
print(yny) |
else: |
if r == 1: |
yny = wbg + " " * 3 + bbg + " " * 3 + wbg + " " * 15 + bbg + " " * 3 + wbg + " " * 3 |
print(nnn) |
nnn = wbg + " " * 27 |
import colored |
nny = wbg + " " * 21 + bbg + " " * 3 + wbg + " " * 3 |
bbg = colored.bg("black") |
print(ynn) |
print(nnn) |
wbg = colored.bg("white") |
print(nnn) |
print(nyn) |
else: |
if r == 1: |
elif r == 2 or r == 3: |
print(nnn) |
print(yny) |
print(nnn) |
print(r) |
import random |
print(yny) |
#Bottom Section |
print(nny) |
elif r == 2 or r == 4: |
ynn = wbg + " " * 3 + bbg + " " * 3 + wbg + " " * 21 |
else: |
print(nnn) |
print(nnn) |
nyn = wbg + " " * 12 + bbg + " " * 3 + wbg + " " * 12 |
print(nnn) |
elif r == 2 or r == 3: |
print(nnn) |
if r == 1 or r == 3 or r == 5: |
#Middle Section |
r = random.randint(1,6) |
#Top Section |
    print(yny) |
else: |
if r == 1: |
yny = wbg + " " * 3 + bbg + " " * 3 + wbg + " " * 15 + bbg + " " * 3 + wbg + " " * 3 |
print(nnn) |
nnn = wbg + " " * 27 |
import colored |
nny = wbg + " " * 21 + bbg + " " * 3 + wbg + " " * 3 |
bbg = colored.bg("black") |
    print(ynn) |
print(nnn) |
wbg = colored.bg("white") |
print(nnn) |
    print(nyn) |
else: |
if r == 1: |
elif r == 2 or r == 3: |
print(nnn) |
    print(yny) |
    print(nnn) |
print(r) |
import random |
    print(yny) |
#Bottom Section |
    print(nny) |
elif r == 2 or r == 4: |
ynn = wbg + " " * 3 + bbg + " " * 3 + wbg + " " * 21 |
else: |
print(nnn) |
print(nnn) |
nyn = wbg + " " * 12 + bbg + " " * 3 + wbg + " " * 12 |
    print(nnn) |
elif r == 2 or r == 3: |
    print(nnn) |
if r == 1 or r == 3 or r == 5: |
1 | import colored |
2 | import random |
3 | |
4 | wbg = colored.bg("white") |
5 | bbg = colored.bg("black") |
6 | |
7 | nnn = wbg + " " * 27 |
8 | yny = wbg + " " * 3 + bbg + " " * 3 + wbg + " " * 15 + bbg + " " * 3 + wbg + " " * 3 |
9 | nyn = wbg + " " * 12 + bbg + " " * 3 + wbg + " " * 12 |
10 | ynn = wbg + " " * 3 + bbg + " " * 3 + wbg + " " * 21 |
11 | nny = wbg + " " * 21 + bbg + " " * 3 + wbg + " " * 3 |
12 | |
13 | r = random.randint(1,6) |
14 | print(r) |
15 | #Top Section |
16 | print(nnn) |
17 | if r == 1: |
18 |     print(nnn) |
19 | elif r == 2 or r == 3: |
20 |     print(ynn) |
21 | else: |
22 |     print(yny) |
23 | print(nnn) |
24 | #Middle Section |
25 | print(nnn) |
26 | if r == 1 or r == 3 or r == 5: |
27 |     print(nyn) |
28 | elif r == 2 or r == 4: |
29 |     print(nnn) |
30 | else: |
31 |     print(yny) |
32 | print(nnn) |
33 | #Bottom Section |
34 | print(nnn) |
35 | if r == 1: |
36 |     print(nnn) |
37 | elif r == 2 or r == 3: |
38 |     print(nny) |
39 | else: |
40 |     print(yny) |
41 | print(nnn) |